projects
/
git-annex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbb4a2b
)
use giveup not error
author
Joey Hess
<joeyh@joeyh.name>
Tue, 16 Sep 2025 17:27:01 +0000
(13:27 -0400)
committer
Joey Hess
<joeyh@joeyh.name>
Tue, 16 Sep 2025 17:27:01 +0000
(13:27 -0400)
This is not debugging a git-annex bug, so no stack trace needed.
Annex/SpecialRemote/Config.hs
patch
|
blob
|
history
diff --git
a/Annex/SpecialRemote/Config.hs
b/Annex/SpecialRemote/Config.hs
index 925b7e837c3d16787eaa35570d490b3ba508c4ee..c8339489ac03fb8201eb9602333d8967fb5dc0c5 100644
(file)
--- a/
Annex/SpecialRemote/Config.hs
+++ b/
Annex/SpecialRemote/Config.hs
@@
-210,7
+210,7
@@
getRemoteConfigValue f (ParsedRemoteConfig m _) = case M.lookup f m of
-- Handle the case where an external special remote
-- tries to SETCONFIG a value belonging to git-annex,
-- resulting in a PassedThrough type being stored.
- Just _ ->
error
$ unwords
+ Just _ ->
giveup
$ unwords
[ "Special remote config "
, fromProposedAccepted f
, "has been overwritten by SETCONFIG."